{{include file="default/Public/header.html"}}

<div id="pageTop">
	<div class="tabs"> 
		<ul>
			<li><a href='#' class="selected" rel="tabsContent1"><span>基本信息</span></a></li>
			<li><a href='#' rel="tabsContent2"><span>扩展信息</span></a></li>
		</ul>
	</div>
</div>

<form class="validate" method="post" action='{{U url="fmanager/add?modelid=$modelid"}}'>
<div id="pageCo">
	<div class="manageForm">
		{{foreach from=$form_data item=card key=id}}
		<table cellpadding="0" cellspacing="0" class="tabcontent" id="tabsContent{{$id}}" {{if $id>1}} style="display:none"{{/if}}>
			<tbody>
				{{foreach from=$card item=v}}
				<tr>
					<th width="150">{{$v.name}}<span>{{$v.tips}}</span></th>
					<td>{{$v.form}}</td>
				</tr>
				{{/foreach}}
				{{if $id==1}}
				<tr>
			      <th width="150">管理员角色<span>给管理员分配一个角色</span></th>
			      <td>
			      <select name="info[role_id]">
			      	{{foreach from=$roles item=v}}
					  <option value="{{$v.role_id}}">{{$v.nickname}}</option>
					{{/foreach}}
			      </select>
			      </td>
			    </tr>
			    {{/if}}
			</tbody>
		</table>
		{{/foreach}}
		<table cellpadding="0" cellspacing="0">
			<tfoot>
				<tr>
					<th width="150">
						<input type="hidden" name="forward" value="{{$forward}}">
						<input type="hidden" name="info[isadmin]" value="1">
					</th>
					<td>
						<label class="btn"><input type="submit" name="submit" value="确定保存" class="submit" /></label>
						<label class="btn"><input type="reset" name="reset" value="重 置" class="submit" /></label>
					</td>
				</tr>
			</tfoot>
		</table>
	</div>
</div>
</form>
{{include file='default/Public/footer.html'}}